<?php

namespace AdminBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * TaskJobs
 *
 * @ORM\Table(name="task_jobs")
 * @ORM\Entity(repositoryClass="AdminBundle\Repository\TaskJobsRepository")
 */
class TaskJobs
{
    /**
     * @var string
     *
     * @ORM\Column(name="name", type="string", length=45, nullable=false)
     */
    private $name = '';

    /**
     * @var string
     *
     * @ORM\Column(name="note", type="string", length=45, nullable=false)
     */
    private $note = '';

    /**
     * @var boolean
     *
     * @ORM\Column(name="is_enabled", type="boolean", nullable=false)
     */
    private $isEnabled = '1';

    /**
     * @var string
     *
     * @ORM\Column(name="creator", type="string", length=45, nullable=false)
     */
    private $creator = '';

    /**
     * @var string
     *
     * @ORM\Column(name="ip", type="string", length=20, nullable=false)
     */
    private $ip = '';

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="ctime", type="datetime", nullable=false)
     */
    private $ctime = 'CURRENT_TIMESTAMP';

    /**
     * @var integer
     *
     * @ORM\Column(name="start_step_id", type="integer", nullable=false)
     */
    private $startStepId = '0';

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="active_start_date", type="date", nullable=false)
     */
    private $activeStartDate = '0000-00-00';

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="active_start_time", type="time", nullable=false)
     */
    private $activeStartTime = '00:00:00';

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="active_end_date", type="date", nullable=false)
     */
    private $activeEndDate = '9999-12-31';

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="active_end_time", type="time", nullable=false)
     */
    private $activeEndTime = '23:59:59';

    /**
     * @var integer
     *
     * @ORM\Column(name="freq_type", type="integer", nullable=false)
     */
    private $freqType = '0';

    /**
     * @var string
     *
     * @ORM\Column(name="freq_expression", type="string", length=90, nullable=false)
     */
    private $freqExpression = '* * * * * * ';

    /**
     * @var integer
     *
     * @ORM\Column(name="package_id", type="integer", nullable=false)
     */
    private $packageId = '0';

    /**
     * @var integer
     *
     * @ORM\Column(name="group_id", type="integer", nullable=false)
     */
    private $groupId = '0';

    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;



    /**
     * Set name
     *
     * @param string $name
     *
     * @return TaskJobs
     */
    public function setName($name)
    {
        $this->name = $name;

        return $this;
    }

    /**
     * Get name
     *
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Set note
     *
     * @param string $note
     *
     * @return TaskJobs
     */
    public function setNote($note)
    {
        $this->note = $note;

        return $this;
    }

    /**
     * Get note
     *
     * @return string
     */
    public function getNote()
    {
        return $this->note;
    }

    /**
     * Set isEnabled
     *
     * @param boolean $isEnabled
     *
     * @return TaskJobs
     */
    public function setIsEnabled($isEnabled)
    {
        $this->isEnabled = $isEnabled;

        return $this;
    }

    /**
     * Get isEnabled
     *
     * @return boolean
     */
    public function getIsEnabled()
    {
        return $this->isEnabled;
    }

    /**
     * Set creator
     *
     * @param string $creator
     *
     * @return TaskJobs
     */
    public function setCreator($creator)
    {
        $this->creator = $creator;

        return $this;
    }

    /**
     * Get creator
     *
     * @return string
     */
    public function getCreator()
    {
        return $this->creator;
    }

    /**
     * Set ip
     *
     * @param string $ip
     *
     * @return TaskJobs
     */
    public function setIp($ip)
    {
        $this->ip = $ip;

        return $this;
    }

    /**
     * Get ip
     *
     * @return string
     */
    public function getIp()
    {
        return $this->ip;
    }

    /**
     * Set ctime
     *
     * @param \DateTime $ctime
     *
     * @return TaskJobs
     */
    public function setCtime($ctime)
    {
        $this->ctime = $ctime;

        return $this;
    }

    /**
     * Get ctime
     *
     * @return \DateTime
     */
    public function getCtime()
    {
        return $this->ctime;
    }

    /**
     * Set startStepId
     *
     * @param integer $startStepId
     *
     * @return TaskJobs
     */
    public function setStartStepId($startStepId)
    {
        $this->startStepId = $startStepId;

        return $this;
    }

    /**
     * Get startStepId
     *
     * @return integer
     */
    public function getStartStepId()
    {
        return $this->startStepId;
    }

    /**
     * Set activeStartDate
     *
     * @param \DateTime $activeStartDate
     *
     * @return TaskJobs
     */
    public function setActiveStartDate($activeStartDate)
    {
        $this->activeStartDate = $activeStartDate;

        return $this;
    }

    /**
     * Get activeStartDate
     *
     * @return \DateTime
     */
    public function getActiveStartDate()
    {
        return $this->activeStartDate;
    }

    /**
     * Set activeStartTime
     *
     * @param \DateTime $activeStartTime
     *
     * @return TaskJobs
     */
    public function setActiveStartTime($activeStartTime)
    {
        $this->activeStartTime = $activeStartTime;

        return $this;
    }

    /**
     * Get activeStartTime
     *
     * @return \DateTime
     */
    public function getActiveStartTime()
    {
        return $this->activeStartTime;
    }

    /**
     * Set activeEndDate
     *
     * @param \DateTime $activeEndDate
     *
     * @return TaskJobs
     */
    public function setActiveEndDate($activeEndDate)
    {
        $this->activeEndDate = $activeEndDate;

        return $this;
    }

    /**
     * Get activeEndDate
     *
     * @return \DateTime
     */
    public function getActiveEndDate()
    {
        return $this->activeEndDate;
    }

    /**
     * Set activeEndTime
     *
     * @param \DateTime $activeEndTime
     *
     * @return TaskJobs
     */
    public function setActiveEndTime($activeEndTime)
    {
        $this->activeEndTime = $activeEndTime;

        return $this;
    }

    /**
     * Get activeEndTime
     *
     * @return \DateTime
     */
    public function getActiveEndTime()
    {
        return $this->activeEndTime;
    }

    /**
     * Set freqType
     *
     * @param integer $freqType
     *
     * @return TaskJobs
     */
    public function setFreqType($freqType)
    {
        $this->freqType = $freqType;

        return $this;
    }

    /**
     * Get freqType
     *
     * @return integer
     */
    public function getFreqType()
    {
        return $this->freqType;
    }

    /**
     * Set freqExpression
     *
     * @param string $freqExpression
     *
     * @return TaskJobs
     */
    public function setFreqExpression($freqExpression)
    {
        $this->freqExpression = $freqExpression;

        return $this;
    }

    /**
     * Get freqExpression
     *
     * @return string
     */
    public function getFreqExpression()
    {
        return $this->freqExpression;
    }

    /**
     * Set packageId
     *
     * @param integer $packageId
     *
     * @return TaskJobs
     */
    public function setPackageId($packageId)
    {
        $this->packageId = $packageId;

        return $this;
    }

    /**
     * Get packageId
     *
     * @return integer
     */
    public function getPackageId()
    {
        return $this->packageId;
    }

    /**
     * Set groupId
     *
     * @param integer $groupId
     *
     * @return TaskJobs
     */
    public function setGroupId($groupId)
    {
        $this->groupId = $groupId;

        return $this;
    }

    /**
     * Get groupId
     *
     * @return integer
     */
    public function getGroupId()
    {
        return $this->groupId;
    }

    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }
}
